package io;

import org.junit.Test;

import java.io.*;

/**
 * @Author wangzhipeng
 * @Date 2020-08-19 3:54 下午
 * @Description
 */
public class BufferedByteIODemo {




    @Test
    public void demo03() throws IOException {
        // 创建缓冲流
        BufferedInputStream in = new BufferedInputStream(new FileInputStream("/Users/wangzhipeng/Desktop/a.txt"));
        BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream("/Users/wangzhipeng/Desktop/b.txt"));

        //复制
        int content = in.read();
        System.out.println(content);

    }


}
